import type { UserConfig } from 'vite'
import i18n from '@intlify/vite-plugin-vue-i18n'

const config: UserConfig = {
  vueCustomBlockTransforms: {
    i18n,
  },
  optimizeDeps: {
    include: [
      'ant-design-vue/es/select/index',
      'ant-design-vue/es/skeleton/index',
      'ant-design-vue/es/button/index',
      'ant-design-vue/es/pagination/index',
      'ant-design-vue/es/config-provider/index',
      'ant-design-vue/es/input/index',
      'ant-design-vue/es/divider/index',
      'ant-design-vue/es/locale/en_US',
      'ant-design-vue/es/locale/zh_CN',
      'ant-design-vue/es/locale/ja_JP',
      // 'bootstrap/dist/js/bootstrap.min.js',
      // 'bootstrap/dist/css/bootstrap.min.css',
    ],
  },
  // cssPreprocessOptions: {
  //   less: {
  //     modifyVars: {
  //       'primary-color': 'rgb(20, 204, 113)',
  //       'link-color': 'rgb(20, 204, 113)',
  //     },
  //     javascriptEnabled: true,
  //   },
  // },
}

export default config
